CC = /home/allwinner/Downloads/tina-v853-open/prebuilt/rootfsbuilt/arm/toolchain-sunxi-musl-gcc-830/toolchain/bin/arm-openwrt-linux-gcc
KERN_DOR = /home/allwinner/Downloads/tina-v853-open/kernel/linux-4.9

all:
	make -C $(KERN_DOR) M=`pwd` modules
	$(CC) -o bmiHARAPP bmigetHARdataAPP.c -lpthread

clean:
	make -C $(KERN_DOR) M=`pwd` modules clean
	rm -rf modules.order
	rm -f bmiHARAPP

obj-m	+= bmidriver.o
obj-m	+= button_drv.o